Skip to content

PDFFile.IsPDFFileUserPassword Method

IsPDFFileUserPassword(Stream,String)

Verifies if the password matches the user password set on the PDF file.

C#
public static bool IsPDFFileUserPassword(Stream stream, string password)

Parameters

stream Stream

Stream that contains the PDF file.

password String

Password to verify.